<%@ page import="com.situ.web.pojo.entity.Teacher" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 4/2/2024
  Time: 7:18 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="static/bootstrap-3.4.1-dist/css/bootstrap.css">
</head>
<body>
<%--${list}--%>
<%
    List<Teacher> list = (List<Teacher>) request.getAttribute("list");
%>
<table class="table table-striped table-bordered table-hover table-condensed">
    <tr>
        <td>ID</td>
        <td>名字</td>
        <td>年龄</td>
        <td>薪资</td>
    </tr>
    <%
        for (Teacher teacher : list) {
    %>
    <tr>
        <td><%=teacher.getId()%></td>
        <td><%=teacher.getName()%></td>
        <td><%=teacher.getAge()%></td>
        <td><%=teacher.getSalary()%></td>
    </tr>
    <%
        }
    %>

</table>

</body>
</html>
